const routes = [
    {
        path: "/",
        exact: true,
        requiresAuth:false,
        component:()=>import('../pages/Home')
    },
    {
        path: "/post",
        requiresAuth:true,
        component:()=>import('../pages/PostList'),
        routes: [
            {
                path: "/post/:id",
                requiresAuth:false,
                component:()=>import('../pages/PostDetail')
            }
        ]
    },
    {
        path: '/login',
        requiresAuth: false,
        singlePage:true,
        component:()=>import('../pages/Login')
    },
];

export default routes;